package com.tlx.design.proxy.custom;

import com.tlx.design.proxy.jdk.MeiPo;
import com.tlx.design.proxy.jdk.Person;
import com.tlx.design.proxy.jdk.XiaoXingXing;
import sun.misc.ProxyGenerator;

import java.io.FileOutputStream;

public class TestFindLove {
    public static void main(String[] args) {
        try {
            MyPerson proxy = (MyPerson) new MyMeiPo().getInstance(new MyXiaoXingXing());
            proxy.findLove();

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
